package dataservice.courseselectiondataservice;

import java.rmi.Remote;
import java.rmi.RemoteException;
import java.util.ArrayList;

import po.*;

public interface CourseSelectionDataService extends Remote{
	public void init() throws RemoteException;

	public void finish() throws RemoteException;

	public boolean insert(CourseSelectionPO po) throws RemoteException;

	public boolean delete(String lessonId,String studentId,String term) throws RemoteException;

	public boolean update(CourseSelectionPO po) throws RemoteException;

	public CourseSelectionPO find(String lessonId, String term, String studentId) throws RemoteException;
	
	public ArrayList<CourseSelectionPO> findByLesson(String lessonId, String term) throws RemoteException;
	
	public ArrayList<CourseSelectionPO> findByStudent(String studentId) throws RemoteException;
	
	public ArrayList<CourseSelectionPO> findByStudent(String studentId, String term) throws RemoteException;

}
